<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ include file="/common/inc.jsp" %>
<page:header title="列表">
<script>
<%-- 新增操作 --%>
function createBaseInfoPage(){
	window.location.href = "${base}/baseInfo!baseInfoCreatePage.do";
}
<%-- 返回操作 --%>
function back(){
	window.location.href = "${base}/baseInfo!baseInfoList.do";
}
<%-- 删除操作--%>
function deleteBaseInfo(id){
	var delOp = new DeleteOp();
	delOp.url='${base}/baseInfo!baseInfoDelete.do?id='+id;
	delOp.message='您确认要删除该吗？\n\n删除后将无法恢复。';
	delOp.callback=function(data){
		if(data.flag){
    		alert(data.msg);
    		back();
    	}else{
    		alert(data.msg);
    	}
	};
	delOp.execute();
}
function search(){
	$("#formList").submit();
}
<%-- 进入详情页面 --%>
function viewBaseInfoPage(id){
	window.location.href = "${base}/baseInfo!baseInfoViewPage.do?id=" + id;
}
<%-- 进入修改页面 --%>
function updateBaseInfoPage(id){
	window.location.href = "${base}/baseInfo!baseInfoUpdatePage.do?id=" + id;
}
</script>
</page:header>
	<div class="location"><span><d:path/></span></div>
	<div class="topMenuBg">
        <form id="formList" name="formList" method="post" action="${base}/baseInfo!baseInfoList.do">
			<table width="100%"  border="0" cellspacing="0" cellpadding="0" class="table3">
				<tr>
				 <td>
				  查询条件
				 </td>
				</tr>
			</table>
			<%-- 展现列表 --%>
			<table class="simpleList">
				<thead>
					<tr>
						<th nowrap="nowrap" width="5%">编号</th>
						 <th nowrap="nowrap" width="10%">姓名</th>
						 <th nowrap="nowrap" width="10%">详情</th>
						 <th nowrap="nowrap" width="10%">性别</th>
						<th nowrap="nowrap" width="10%">操作</th>
					</tr>
				</thead>
				<c:if test="${empty pageInfo.dataList}">
					<tr><td colspan="5" align="center">无数据</td></tr>
				</c:if>
				<c:forEach items="${pageInfo.dataList}" var="item" varStatus="vs">
					    <tr>
					        <td nowrap="nowrap" align="center"  >${vs.index+1}</td>
						    <td nowrap="nowrap" align="center" title="${item.name}">${item.name}</td>
						    <td nowrap="nowrap" align="center" title="${item.details}">${item.details}</td>
						    <td nowrap="nowrap" align="center" title="${item.sex}">${item.sex}</td>
						    <td  align="center">
								<a class="A-edit" href="javascript:updateBaseInfoPage('${item.id}');" title="点击进入编辑页面">编辑</a>
								<a class="A-view" href="javascript:viewBaseInfoPage('${item.id}');" title="点击查看详情">详情</a>
								<a class="A-del"  href="javascript:deleteBaseInfo('${item.id}');" title="点击删除该">删除</a>
							</td>
					  	</tr>
			    </c:forEach>
			</table>
		</form>
	</div>
	<div class="footerMenu">
	    <jsp:include page="/common/pageInfo.jsp"/>
	</div>
	<script type="text/javascript">
		autoStyle(null,{select:false});
	</script>
    <d:sysHelper/>
<page:footer></page:footer>

